﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Web;

namespace Com.CMS263.Util
{
    public static class GetImageUrl
    {
        public static string getUrl(string url)
        {
            try
            {
                FileInfo fi = new FileInfo(System.Web.HttpContext.Current.Server.MapPath(url));
                if (fi.Exists)
                {
                    return url;
                }
                else
                {
                    return "/images/jnfa_tu.jpg";
                }
            }
            catch (Exception)
            {

                return "/images/jnfa_tu.jpg";
            }
            
        }
    }
}
